﻿using System;
using System.Collections.Generic;
using System.ComponentModel;
using System.Data;
using System.Drawing;
using System.Linq;
using System.Text;
using System.Windows.Forms;

namespace Testing
{
    public partial class frmOptimizeGDI : Form
    {
        public frmOptimizeGDI()
        {
            InitializeComponent();
        }

        private void frmOptimizeGDI_Paint(object sender, PaintEventArgs e)
        {
            Pen drawingPen = new Pen( Color .Red, 15); 
            e.Graphics.DrawEllipse(drawingPen, new Rectangle(new Point(0, 0), this.ClientSize)); 
        }

        private void frmOptimizeGDI_Resize(object sender, EventArgs e)
        {
            this.Invalidate();
        }
    }
}
